﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoreGallery.Addins.Contracts
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class CoreAddinAttribute : Attribute
    {
        Guid _uniqueKey;
        string _name, _creator, _description, _aboutText;
        Version _version;

        public CoreAddinAttribute(string name, string uniqueKey)
        {
            _name = name;
            _uniqueKey = new Guid(uniqueKey);
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Creator
        {
            get { return _creator; }
            set { _creator = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public string AboutText
        {
            get { return _aboutText; }
            set { _aboutText = value; }
        }

        public Version Version
        {
            get { return _version; }
            set { _version = value; }
        }

        public Guid UniqueKey
        {
            get { return _uniqueKey; }
            set { _uniqueKey = value; }
        }
    }
}
